package com.aaa.java10;

import com.aaa.utils.MyConstants;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author ：Teacher陈（86521760@qq.com）
 * @date ：Created in 2022/7/13 15:53
 * @description：测试throw
 * @modified By：
 * @version: 1.0
 */
public class ThrowTest {
    public static void main(String[] args) throws ParseException {
       /* SimpleDateFormat simpleDateFormat = new SimpleDateFormat(MyConstants.TIME_FORMAT);
        String str="2022-07-13 15:55:10";
        Date date = simpleDateFormat.parse(str);
        System.out.println(date);*/

       Person person = new Person();
       person.setName("陈建");
      // int a= 1/0;
        try {
            person.setAge(200);
        } catch (MyException e) {
            e.printStackTrace();
        }
    }
}
